package com.qdlc.p2p.biz.service;

import java.util.List;

import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.common.model.jpa.QueryParam;
import com.qdlc.p2p.dal.dto.CardSend;
import com.qdlc.p2p.dal.model.CardSendModel;

/**
 * Created by lenovo on 2015/12/21.
 */
public interface CardSendService {

    /**
     * 根据model进行查询
     *
     * @param model
     * @return
     */
    PageDataList<CardSendModel> findByModel(CardSendModel model);

    /**
     * 保存
     *
     * @param cardSend
     * @return
     */
    CardSend save(CardSend cardSend);

    /**
     * 根据单个属性值查询
     *
     * @param property
     * @param value
     * @return
     */
    List<CardSend> findByProperty(String property, Object value);

    /**
     * 根据多种属性值查询
     *
     * @param param
     * @return
     */
    List<CardSend> findByCriteria(QueryParam param);

}
